import Vue from 'vue'
import Router from 'vue-router'
import Recommend from 'components/recommend/recommend'
import Singer from 'components/singer/singer'
import Rank from 'components/rank/rank'
import Search from 'components/search/search'
import singerDetail from 'components/singer-detail/singer-detail'
import test from 'components/test'

Vue.use(Router)

export default new Router({
  routes: [
      {
          path: '/recommend',
          component: Recommend
      },
      {
          path: '/singer',
          component: Singer,
          children: [
              {
                  path: ':id',
                  component: singerDetail
              }
          ]
      },
      {
          path: '/rank',
          component: Rank
      },
      {
          path: '/search',
          component: Search
      },
      {
          path: '/test',
          component: test
      }
  ]
})
